(()=>{"use strict";new function(){var e=this;e.init=function(){e.init_options()},e.getNumber=function(e,t=1){return Number(e)?Number(e):t},this.JSONify=e=>{var t={};for(var i in e)t['"'+i+'"']=e[i];return t},e.init_options=function(){var e=document.querySelectorAll(".wp-swiper");window.wpSwiper=[],window.wpSwiperThumbs=[];for(let t=0;t{const i=t+1,r=Array.from(p).find((e=>parseInt(e.getAttribute("data-thumb"))===i));r?w[t]=r.cloneNode(!0):(w[t]=e.cloneNode(!0),w[t].removeAttribute("data-tab"),w[t].classList.remove("wp-swiper__slide"),w[t].classList.add("wp-swiper__thumb"))})),a.innerHTML="",w.forEach((e=>{a.appendChild(e)})),n=JSON.parse(r.getAttribute("data-thumbs")),window.wpSwiperThumbs[t]=new Swiper(o,n),i={...i,thumbs:{swiper:window.wpSwiperThumbs[t]}}}"vertical"==i.direction&&(i.on={init:function(){var e=this.wrapperEl,t=e.children[this.activeIndex].querySelector(".wp-swiper__slide-content").offsetHeight;e.style.height=t+"px"},slideChangeTransitionEnd:function(){var e=this.wrapperEl,t=e.children[this.activeIndex].querySelector(".wp-swiper__slide-content").offsetHeight;e.style.height=t+"px"}}),r.hasAttribute("data-debug")&&"true"==r.getAttribute("data-debug")&&console.log({swiper_container:r,options:i}),window.wpSwiper[t]=new Swiper(r,i)}},window.addEventListener("DOMContentLoaded",(t=>{try{e.init()}catch(e){console.warn("JS Error: "),console.log(e)}}))}})();